<div id="content">
  <div class="row s_page_title">
    <sa-big-breadcrumbs [items]="['数据管理', '数据汇总统计']" icon="fa fa-download" class="col-xs-12 col-sm-7 col-md-7 col-lg-4">
    </sa-big-breadcrumbs>
  </div>
  <sa-widgets-grid>
    <div class="s_table">
      <div sa-widget [editbutton]="false" color="darken" class="clearfix">
        <header>
          <span class="widget-icon"><i class="fa fa-table"></i></span>
          <h2>数据汇总统计</h2>
        </header>
        <div>
          <div class="widget-body no-padding">
            <div class="page-header clearfix s_table_opreation">
              <div class="left page-header-btn">
                <div class="top_module statistical">
                  <span class="module_text">所选厂区</span>
                  <sa-company-tree-checkbox wrap="body" inputName="recordCompanyName" [inputApi]="inputApi"
                    [threeState]="false" [companyValue]="companyArrays" companyTreeId="companyTreeRecord" [Height]="28"
                    (companySelected)="addRecordCompanySelected($event)" (click)="companySelectedClick()">
                  </sa-company-tree-checkbox>
                </div>
                <div class="selectDate top_module">
                  <div class="input-daterange input-group s_selected_time_box s_hover_box">
                    <input type="text" [(ngModel)]="startTime" class="form-control s_selected_time" id="datetimepicker1"
                      autocomplete="off" placeholder="选择开始时间" />
                    <span class="s_selected_time_spe">至</span>
                    <input type="text" [(ngModel)]="endTime" class="form-control s_selected_time" id="datetimepicker2"
                      autocomplete="off" placeholder="选择结束时间" />
                    <div class="s_del_icon" (click)="del_date()">x</div>
                  </div>
                </div>
                <div class="top_module">
                  <span class="module_text">统计方式</span>
                  <select class="module_inp" name="orderType" id="orderType" [(ngModel)]="orderType">
                    <option value="">全部</option>
                    <option value="1">通过磅单</option>
                    <option value="2">通过算法订单</option>
                  </select>
                </div>
                <button type="button" class="btn btn-primary" (click)="dowmload(1)">车辆日活情况统计下载</button>
                <button type="button" class="btn btn-primary" (click)="dowmload(2)">车辆接单留存数据下载</button>
                <button type="button" class="btn btn-primary" (click)="dowmload(3)">车辆月活情况统计下载</button>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </sa-widgets-grid>
  <sa-widgets-grid>
    <div class="s_table" style="margin-top: 20px;">
      <div sa-widget [editbutton]="false" color="darken" class="clearfix">
        <div>
          <div class="widget-body no-padding" style="min-height: auto;">
            <div class="page-header clearfix s_table_opreation">
              <div class="left page-header-btn">
                <div class="selectDate top_module">
                  <div class="input-daterange input-group s_selected_time_box s_hover_box">
                    <input type="text" [(ngModel)]="secondSearch.startTime" class="form-control s_selected_time" id="datetimepicker3"
                      autocomplete="off" placeholder="选择开始时间" />
                    <span class="s_selected_time_spe">至</span>
                    <input type="text" [(ngModel)]="secondSearch.endTime" class="form-control s_selected_time" id="datetimepicker4"
                      autocomplete="off" placeholder="选择结束时间" />
                    <div class="s_del_icon" (click)="del_date_back()">x</div>
                  </div>
                </div>
                <button type="button" class="btn btn-primary" (click)="downloadSecond(1)">导出车辆安装使用物料明细</button>
                <button type="button" class="btn btn-primary" (click)="downloadSecond(2)">导出维修对账统计</button>
                <button type="button" class="btn btn-primary" (click)="downloadSecond(3)">导出设备事件物料统计</button>
                <button type="button" class="btn btn-primary" (click)="downloadSecond(4)">导出发货单所有物料明细</button>
                <button type="button" class="btn btn-primary" (click)="downloadSecond(5)">导出补货单所有物料明细</button>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </sa-widgets-grid>

  <style>
    .statistical {
      position: relative;
      min-width: 230px;
    }

    .statistical .company_tree.company_tree_box {
      position: absolute !important;
      width: 300px !important;
    }
  </style>
</div>